'use strict';
const URL = 'https://shop.hx2lm.com/api/';
// 获取验证码
const send_note = 'user/send-note';
// 登陆
const _login = 'user/login';
// 首页banner
const _banner = 'index/banner';
// 获取公告
const _notice = 'index/notice';
// 获取导航
const _navigation = 'index/navigation';
// 获取首页橱窗
const _window = 'index/window';
// 获取限时抢购商品
const _spike = 'index/spike';
// 获取套餐商品
const _composer = 'index/composer';
// 获取热卖推荐商品
const _hotGoods = 'index/hot-goods';
//搜索
const _search = 'index/search';
// 搜索小标签
const _searchRank = 'index/search-rank';
// 商品详情页
const good_detail = 'store/good-detail';
// 商品详情页获取分类
const _getsku = 'store/get-sku';
// 分类
const good_cate = 'store/good-cate';
// 商品列表
const good_list = 'store/good-list';
// 用户信息
const User_Info = 'user/user-info';
// 获取商铺信息
const shop_Info = 'store/shop-info';
// 修改头像
const change_avatar = 'user/change-avatar';
// 修改姓名
const change_nickname = 'user/change-nickname';
// 联盟商家
const _alliance = 'index/alliance';
// 订单
const _myOrder = 'user/my-order';
// 确认订单
const make_order = 'order/make-order';
// 确认支付
const order_pay = 'order/pay';
// 添加地址
const add_address = 'user/add-address';
// 提醒发货
const _remind = 'order/remind';
// 确认收货
const _confirm = 'order/confirm';
// 取消订单
const _cancelOrder = 'order/cancel-order';
// 删除订单
const _delOrder = 'order/del-order';
// 订单详情
const _orderDetail = 'order/order-detail';
// 申请退款
const _refund = 'order/refund';
// 获取物流地址
const _express = 'order/express';

//获取接口地址
// 发送验证码
const sendNote = () => URL + send_note;
// 登陆
const login = () => URL + _login;
// 首页banner
const banner = () => URL + _banner;
// 获取公告
const Notice = () => URL + _notice;
// 获取导航
const Navigation = () => URL + _navigation;
// 获取首页橱窗
const Window = () => URL + _window;
// 获取限时抢购商品
const Spike = () => URL + _spike;
// 获取套餐商品
const Composer = () => URL + _composer;
// 获取热卖推荐商品
const HotGoods = () => URL + _hotGoods;
//搜索
const search = () => URL + _search;
// 搜索小标签
const searchRank = () => URL + _searchRank;
//商品详情页
const goodDetail = () => URL + good_detail;
// 商品详情页获取分类
const GetSku = () => URL + _getsku;
//分类
const goodCate = () => URL + good_cate;
// 分类商品列表
const goodList = () => URL + good_list;
// 联盟商家
const alliance = () => URL + _alliance;
// 获取用户信息
const userInfo = () => URL + User_Info;
// 获取商铺信息
const shopInfo = () => URL + shop_Info;
// 修改头像
const changeavatar = () => URL + change_avatar;
// 修改姓名
const changeNickname = () => URL + change_nickname;
// 我的订单
const myOrder = () => URL + _myOrder;
// 确认订单
const makeOrder = () => URL + make_order;
// 确认支付
const orderPay = () => URL + order_pay;
// 添加地址
const addAddress = () => URL + add_address;
// 提醒发货
const remind = () => URL + _remind;
// 确认收货
const confirm = () => URL + _confirm;
// 取消订单
const cancelOrder = () => URL + _cancelOrder;
// 删除订单
const delOrder = () => URL + _delOrder;
// 订单详情
const orderDetail = () => URL + _orderDetail;
// 申请退款
const refund = () => URL + _refund;
// 获取物流详情
const express = () => URL + _express;

module.exports = {
    URL,
    sendNote,
    login,
    banner,
    Notice,
    Navigation,
    Window,
    Spike,
    Composer,
    HotGoods,
    search,
    searchRank,
    goodDetail,
    GetSku,
    goodCate,
    goodList,
    alliance,
    userInfo,
    shopInfo,
    changeavatar,
    changeNickname,
    myOrder,
    makeOrder,
    orderPay,
    addAddress,
    remind,
    confirm,
    delOrder,
    cancelOrder,
    orderDetail,
    refund,
    express,
};